float babl_trc_from_linearf (const Babl *trc, float value);
float babl_trc_to_linearf (const Babl *trc, float value);
-/**
- * babl_space_get_chromaticities:
- *
- * Returns the CIE xyY chromaticity values for white point and primaries for a
- * space.
- */
-void babl_space_get_chromaticities (const Babl *space,
- double *wx, double *wy,
- double *rx, double *ry,
- double *gx, double *gy,
- double *bx, double *by);
-
const Babl *
babl_trc_new (const char *name,
BablTRCType type,
#include "babl-internal.h"
#include "base/util.h"
+
+
static BablSpace space_db[MAX_SPACES];
static void babl_chromatic_adaptation_matrix (const double *whitepoint,
memcpy (space->XYZtoRGB, mat, sizeof (mat));
}
-void
-babl_space_get_chromaticities (const Babl *space,
- double *xw, double *yw,
- double *xr, double *yr,
- double *xg, double *yg,
- double *xb, double *yb)
-{
- if (!space)
- return;
-
- if (xw) *xw = space->space.xw;
- if (yw) *yw = space->space.yw;
-
- if (xr) *xr = space->space.xr;
- if (yr) *yr = space->space.yr;
- if (xg) *xg = space->space.xg;
- if (yg) *yg = space->space.yg;
- if (xb) *xb = space->space.xb;
- if (yb) *yb = space->space.yb;
-}
-
const Babl *
babl_space (const char *name)
{